package com.sntk.organauthomanager.infrastructure.db.repository;

import com.sntk.organauthomanager.infrastructure.db.entity.UserAffiliateEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface UserAffiliateDBRepository extends JpaRepository<UserAffiliateEntity, Long> {
    List<UserAffiliateEntity> findAllByUname(String uname);

    void deleteAllByUname(String uname);
}
